/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-05-16 14:55:35
 * @FilePath: /yuxiuproweb/src/api/asc/raw/index.js
 */
import request from "@/utils/request";

// 查询订单-成品原料列表
export function listOrderRaw(query) {
  return request({
    url: "/md/orderRaw/list",
    method: "get",
    params: query,
  });
}

// 查询订单-成品原料详细
export function getOrderRaw(orderRawId) {
  return request({
    url: "/md/orderRaw/" + orderRawId,
    method: "get",
  });
}

// 新增订单-成品原料
export function addOrderRaw(data) {
  return request({
    url: "/md/orderRaw",
    method: "post",
    data: data,
  });
}

// 修改订单-成品原料
export function updateOrderRaw(data) {
  return request({
    url: "/md/orderRaw",
    method: "put",
    data: data,
  });
}

// 删除订单-成品原料
export function delOrderRaw(orderRawIds) {
  return request({
    url: "/md/orderRaw/" + orderRawIds,
    method: "delete",
  });
}

// 批量-保存订单-成品原料
export function batchEditOrderRaw(data) {
  return request({
    url: "/md/orderRaw/batchEdit",
    method: "put",
    data: data,
  });
}
